package ACM;

import java.util.Arrays;
import java.util.Scanner;

public class Main_10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String[] strings = scanner.nextLine().split(",");
            Arrays.sort(strings);
            System.out.println(String.join(",", strings));
        }
    }
}
